<!DOCTYPE html>
<html lang="en">
  <head>
    <title>SwiftFortuneWheel  Reference</title>
    <link rel="stylesheet" type="text/css" href="css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="css/highlight.css" />
    <meta charset='utf-8'>
    <script src="js/jquery.min.js" defer></script>
    <script src="js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a title="SwiftFortuneWheel  Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="index.html">SwiftFortuneWheel 1.1.0 Docs</a> (79% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="index.html">SwiftFortuneWheel Reference</a>
        <img id="carat" src="img/carat.png" />
        SwiftFortuneWheel  Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Classes/NoClippingLayer.html">NoClippingLayer</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/PinImageView.html">PinImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/SpinButton.html">SpinButton</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/SpinningWheelAnimator.html">SpinningWheelAnimator</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/SwiftFortuneWheel.html">SwiftFortuneWheel</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/TTUtils.html">TTUtils</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/WheelLayer.html">WheelLayer</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/WheelView.html">WheelView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Extensions/Array.html">Array</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/CGRect.html">CGRect</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/CGSize.html">CGSize</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSBezierPath.html">NSBezierPath</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSButton.html">NSButton</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSFont.html">NSFont</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSImage.html">NSImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSImageView.html">NSImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSScreen.html">NSScreen</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSView.html">NSView</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/SFWColor.html">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/SFWFont.html">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/SFWImage.html">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/UIView.html">UIView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Functions.html#/UIGraphicsGetCurrentContext()">UIGraphicsGetCurrentContext()</a>
              </li>
              <li class="nav-group-task">
                <a href="Functions.html#/UIGraphicsPopContext()">UIGraphicsPopContext()</a>
              </li>
              <li class="nav-group-task">
                <a href="Functions.html#/UIGraphicsPushContext(_:)">UIGraphicsPushContext(_:)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Protocols/CurveTextDrawing.html">CurveTextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/ImageDrawing.html">ImageDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/ShapeDrawing.html">ShapeDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/SliceCalculating.html">SliceCalculating</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/SliceDrawing.html">SliceDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/SpinningAnimatable.html">SpinningAnimatable</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/SpinningAnimatorProtocol.html">SpinningAnimatorProtocol</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/TextDrawing.html">TextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/WheelMathCalculating.html">WheelMathCalculating</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Structs/Calc.html">Calc</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/ImagePreferences.html">ImagePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/LinePreferences.html">LinePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration.html">SFWConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/WheelPreferences.html">– WheelPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/CirclePreferences.html">– CirclePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/SlicePreferences.html">– SlicePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/SpinButtonPreferences.html">– SpinButtonPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/PinImageViewPreferences.html">– PinImageViewPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/Margins.html">– Margins</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/ColorType.html">– ColorType</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/AnchorImage.html">– AnchorImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/ContentMode.html">– ContentMode</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/Slice.html">Slice</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/Slice/ContentType.html">– ContentType</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/TextPreferences.html">TextPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/TextPreferences/Orientation.html">– Orientation</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/TextPreferences/LineBreakMode.html">– LineBreakMode</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWColor">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel8SFWColora">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWControl">SFWControl</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel10SFWControla">SFWControl</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWEdgeInsets">SFWEdgeInsets</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel13SFWEdgeInsetsa">SFWEdgeInsets</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWFont">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel7SFWFonta">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWImage">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel8SFWImagea">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIBezierPath">UIBezierPath</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIButton">UIButton</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIImageView">UIImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIScreen">UIScreen</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIView">UIView</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            
            <p><img src="./Images/header.png" width="400" alt="SwiftFortuneWheel"/></p>

<p><a href=""><img src="https://img.shields.io/badge/Swift-5-orange.svg" alt="Swift Version"></a>
<a href="https://cocoapods.org/pods/SwiftFortuneWheel"><img src="https://img.shields.io/cocoapods/v/SwiftFortuneWheel.svg?label=version" alt="Version"></a>
<img src="https://img.shields.io/badge/supports-SPM%2C%20CocoaPods-green.svg" alt="Support">
<a href="https://cocoapods.org/pods/SwiftFortuneWheel"><img src="https://img.shields.io/cocoapods/p/SwiftFortuneWheel.svg?style=flat" alt="Platform"></a>
<img src="./docs/badge.svg?style=flat&sanitize=true" alt="Documentation"></p>

<p>The ultimate spinning wheel control that supports dynamic content and rich customization.</p>

<table><thead>
<tr>
<th></th>
<th>Main Features</th>
</tr>
</thead><tbody>
<tr>
<td>🏵</td>
<td>Dynamic content, supports texts, images, and lines</td>
</tr>
<tr>
<td>🎯</td>
<td>Adaptive text size with support multiline, alignment and line break mode</td>
</tr>
<tr>
<td></td>
<td>Supports background Image for each Slice (sector)</td>
</tr>
<tr>
<td>🧮</td>
<td>Supports vertical and horizontal text orientation</td>
</tr>
<tr>
<td>🌈</td>
<td>Appearance customization</td>
</tr>
<tr>
<td>🎨</td>
<td>High performance, low memory usage</td>
</tr>
<tr>
<td>🎨</td>
<td>Drawn and animated using CoreGraphics, CoreAnimations</td>
</tr>
<tr>
<td>🚀</td>
<td>Written in Swift</td>
</tr>
</tbody></table>
<h3 id='layout-preview' class='heading'>Layout Preview</h3>

<p><img src="./Images/screens/simple.png" width="250"/><img src="./Images/screens/spike.png" width="250"/></p>

<p><img src="./Images/screens/podium.png" width="250"/><img src="./Images/screens/jackpot.png" width="250"/></p>

<blockquote>
<p><em>Taken from <a href="/Examples">example projects</a></em></p>
</blockquote>
<h3 id='dynamic-content-and-rotation-preview' class='heading'>Dynamic Content and Rotation Preview</h3>

<p><img src="./Images/layout.gif" width="250"/><img src="./Images/rotation.gif" width="250"/></p>

<blockquote>
<p><em>Taken from <a href="/Examples">example projects</a></em></p>
</blockquote>
<h2 id='screenshots' class='heading'>Screenshots</h2>

<details>
  <summary>from iOS Example Project</summary>
<img src="./Images/screenshots/1.png" width="250"/><img src="./Images/screenshots/2.png" width="250"/><img src="./Images/screenshots/3.png" width="250"/><img src="./Images/screenshots/4.png" width="250"/><img src="./Images/screenshots/5.png" width="250"/><img src="./Images/screenshots/6.png" width="250"/><img src="./Images/screenshots/7.png" width="250"/>
</details>

<hr>

<details>
  <summary>from macOS Example Project</summary>
<img src="./Images/screenshots/macos.png" width="450"/>
</details>

<hr>

<details>
  <summary>from tvOS Example Project</summary>
<img src="./Images/screenshots/tvos.png" width="550"/>
</details>

<hr>
<h2 id='documentation' class='heading'>Documentation</h2>

<ul>
<li><a href="/Documentation/GettingStarted.md"><strong>Getting Started Guide</strong></a></li>
<li><a href="/Documentation/API_Overview.md"><strong>API Overview</strong></a></li>
<li><a href="/Documentation/Configuration_indepth.md"><strong>Configuration In-Depth</strong></a></li>
<li><a href="/Documentation/About_Slice_and_Slice_contents.md"><strong>About Slice and Slice’s contents</strong></a></li>
<li><a href="/Documentation/Port_to_Other_Platforms.md"><strong>About Port to Other Platforms</strong></a></li>
<li><a href="/Examples"><strong>Example Projects</strong></a>
## Installation</li>
</ul>

<p>When you are ready to install, follow the <a href="/Documentation/Installation.md"><strong>Installation Guide</strong></a>.</p>
<h2 id='api-documentation' class='heading'>API Documentation</h2>

<p>You can find <a href="https://sh-khashimov.github.io/SwiftFortuneWheel/" target="_blank"><strong>the docs here</strong></a>. </p>

<p>Documentation is generated with <a href="https://github.com/realm/jazzy">jazzy</a> and hosted on <a href="https://pages.github.com/">GitHub-Pages</a>.</p>

<p><a name="h_requirements"></a></p>
<h2 id='requirements' class='heading'>Requirements</h2>

<table><thead>
<tr>
<th>App name</th>
<th>Swif</th>
<th>Xcode</th>
<th>Platforms</th>
</tr>
</thead><tbody>
<tr>
<td>1.1.x - current version</td>
<td>Swift 5.0</td>
<td>Xcode 11</td>
<td>iOS 9.0 / macOS 10.11 / tvOS 9.0</td>
</tr>
<tr>
<td>0.x.x - 1.0.x</td>
<td>Swift 5.0</td>
<td>Xcode 11</td>
<td>iOS 9.0</td>
</tr>
</tbody></table>
<h2 id='contributing' class='heading'>Contributing</h2>

<p>Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.</p>

<p>Please make sure to update tests as appropriate.</p>
<h2 id='migration' class='heading'>Migration</h2>

<ul>
<li><a href="/Documentation/Migrations/Migration_1_to_1.x.md"><strong>from 1.0.x to 1.1.x</strong></a></li>
<li><a href="/Documentation/Migrations/Migration_0_to_1.md"><strong>from 0.x.x to 1.0.0</strong></a></li>
</ul>
<h2 id='changelog' class='heading'>Changelog</h2>

<p>See <a href="/Documentation/Changelog.md"><strong>changelog here</strong></a></p>
<h2 id='author' class='heading'>Author</h2>

<p>Sherzod Khashimov</p>
<h2 id='license' class='heading'>License</h2>

<p><a href="https://choosealicense.com/licenses/mit/">MIT</a></p>

          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://github.com/sh-khashimov/SwiftFortuneWheel.git" target="_blank" rel="external">Sherzod Khashimov</a>. All rights reserved. (Last updated: 2020-07-22)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
